package com.iflyun.person.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.iflyun.person.dao.TestService;

@RestController
public class TestController {
    
	@Autowired
    TestService testService;

    @RequestMapping("/index")
	public String getInt(){
		return testService.getAllWebLogs()+"";
	}
	
	@RequestMapping("/log/{id}")
	public String getlog(@PathVariable String id){
		return testService.findById(id).getIp()+"";
	}
    



}
